<template>
  <div id="footer">
    <dv-border-box-10>
      <div id="footerleft" class="footerleft">
      </div>
    </dv-border-box-10>
    <dv-border-box-10>
      <div id="footerright" class="footerright">

      </div>
    </dv-border-box-10>
  </div>
</template>

<script>
export default {
  name: 'Footers',
  data() {
    return {

    }
  },
  methods: {
    drawChart() {
      // 基于准备好的dom，初始化echarts实例
      let myChart5 = this.$echarts.init(document.getElementById("footerleft"));
      let myChart6 = this.$echarts.init(document.getElementById('footerright'));

      // 指定图表的配置项和数据
      let option1 = {
        xAxis: {
          type: 'category',
          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
          type: 'value'
        },
        series: [{
          data: [120, 200, 150, 80, 70, 110, 130],
          type: 'bar'
        }]
      };


      let option2 = {
        xAxis: {},
        yAxis: {},
        series: [{
          symbolSize: 20,
          data: [
            [10.0, 8.04],
            [8.07, 6.95],
            [13.0, 7.58],
            [9.05, 8.81],
            [11.0, 8.33],
            [14.0, 7.66],
            [13.4, 6.81],
            [10.0, 6.33],
            [14.0, 8.96],
            [12.5, 6.82],
            [9.15, 7.20],
            [11.5, 7.20],
            [3.03, 4.23],
            [12.2, 7.83],
            [2.02, 4.47],
            [1.05, 3.33],
            [4.05, 4.96],
            [6.03, 7.24],
            [12.0, 6.26],
            [12.0, 8.84],
            [7.08, 5.82],
            [5.02, 5.68]
          ],
          type: 'scatter'
        }]
      };

      myChart5.setOption(option1);
      myChart6.setOption(option2);


    },
  },
  mounted() {
    this.drawChart();
  }
}
</script>

<style scoped>
#footer {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: left;
}
.footerleft {
  width: 50%;
  height: 300px;
  /* padding-right: 50px; */
  /* margin-right: 20px; */
  /* background-color: rgb(9, 22, 41); */
}

.footerright {
  width: 50%;
  height: 300px;
}
</style>